<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>v-if 的使用</title>
</head>
<body>
<div id="app">
    <div v-if="true">
        条件为真时显示
    </div>

    <div v-if="isShow">
        条件为真时显示
    </div>


    <div v-if="lan==='chs'">中文</div>

</div>
<script src="../../../../../js/vue.global.js"></script>

<script>
    const app = Vue.createApp({
        data() {
            return {
                isShow: true,
                lan: "chs",
            }
        }
    })

    app.mount("#app")
</script>
</body>
</html>